import 'package:json_annotation/json_annotation.dart';

part 'picture.g.dart';

@JsonSerializable()
class Picture extends Object {
  @JsonKey(name: 'id')
  int id;

  @JsonKey(name: 'url')
  String url;

  @JsonKey(name: 'image')
  String image;

  Picture(
    this.id,
    this.url,
    this.image,
  );

  factory Picture.fromJson(Map<String, dynamic> srcJson) =>
      _$PictureFromJson(srcJson);
}
